<?php
/**
 * @author CptSoap
 * @email 694652150@qq.com
 * @date 2021/10/6
 */


namespace app\api\controller;

use app\api\model\BannerModel;
use app\api\utils\jsonResult;
use think\Controller;

class Banner extends Controller
{
    public function getBannerList(): \think\response\Json
    {
        $bannerModel = new BannerModel();
        $dataList = $bannerModel->getUserData();
        return (new jsonResult)::result(200, "获取Banner列表成功", $dataList, count($dataList));
    }

}